Smartthings presence faq. You need to set a delay in your Goodbye routine to not rum until presence...